package com.yidu.qx.domain;

import javax.persistence.*;
import java.sql.Time;
import java.util.Objects;

/**
 * @program: jurisdiction
 * @description:
 * @author: 张超
 * @create: 2019-09-25 10:23
 */
@Entity
@Table(name = "qx_user", schema = "ZC", catalog = "")
public class QxUserEntity {
    private String userId;
    private String userName;
    private String userPassword;
    private String userPhone;
    private String userEmail;
    private String userState;
    private Long userSort;
    private Time userFoundDate;
    private String userFoundUser;

    @Id
    @Column(name = "user_id")
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Basic
    @Column(name = "user_name")
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Basic
    @Column(name = "user_password")
    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    @Basic
    @Column(name = "user_phone")
    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    @Basic
    @Column(name = "user_email")
    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    @Basic
    @Column(name = "user_state")
    public String getUserState() {
        return userState;
    }

    public void setUserState(String userState) {
        this.userState = userState;
    }

    @Basic
    @Column(name = "user_sort")
    public Long getUserSort() {
        return userSort;
    }

    public void setUserSort(Long userSort) {
        this.userSort = userSort;
    }

    @Basic
    @Column(name = "user_found_date")
    public Time getUserFoundDate() {
        return userFoundDate;
    }

    public void setUserFoundDate(Time userFoundDate) {
        this.userFoundDate = userFoundDate;
    }

    @Basic
    @Column(name = "user_found_user")
    public String getUserFoundUser() {
        return userFoundUser;
    }

    public void setUserFoundUser(String userFoundUser) {
        this.userFoundUser = userFoundUser;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        QxUserEntity that = (QxUserEntity) o;
        return Objects.equals(userId, that.userId) &&
                Objects.equals(userName, that.userName) &&
                Objects.equals(userPassword, that.userPassword) &&
                Objects.equals(userPhone, that.userPhone) &&
                Objects.equals(userEmail, that.userEmail) &&
                Objects.equals(userState, that.userState) &&
                Objects.equals(userSort, that.userSort) &&
                Objects.equals(userFoundDate, that.userFoundDate) &&
                Objects.equals(userFoundUser, that.userFoundUser);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userId, userName, userPassword, userPhone, userEmail, userState, userSort, userFoundDate, userFoundUser);
    }
}